const fs = require('fs')
const path = require('path')

// 新闻列表
function news() {
    let filepath = path.join(__dirname, './data/news.json')
    let str = fs.readFileSync(filepath, 'utf-8')
    return JSON.parse(str)
}

module.exports = {
    news
}